﻿using MainFrameDesign.Draws;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace MainFrameDesign.ContentContorl
{
    public class ChildDiv:Div
    {
        public ChildDiv() : base() 
        {
            Padding margin = new Padding();
            margin.All = 0;
            this.Margin = margin;
        }

        public override void DrawDrawRect(System.Drawing.Graphics g)
        {
            g.FillRectangle(Brushes.White, DrawRect);
            g.DrawRectangle(MyDraw.BorderPen, DrawRect);
        }

        public override Boolean IsInTop(Point P)
        {
            return false;
        }

        public override Boolean IsInBottom(Point P)
        {
            return false;
        }

        public override void DrawContent(System.Drawing.Graphics g)
        {
            return;
        }

        public override void CallWidth()
        {
            foreach (var item in Childs)
            {
                item.CallWidth();
            }
        }
    }
}
